import Mock from 'mockjs'

Mock.mock("/juejin/", "get", {
    code: 0,
    msg: '',
    datas:{
        "total|2000-3000":0,
        "rows|10":[{
            name:'@cname',
            id:'@guid',
            title:'@ctitle(6,20)',
            description:'@cparagraph(5,9)',
            'scanNumber|0-5000':10,
            'commentNumber|0-1000':30,
            'like|0-1000':20,
            "pic|1": [Mock.Random.image("120x80", '#ccc', '#fff', 'picture'),null],
            createDate: "@date('T')",
        }]
    } 
})


Mock.setup({
    timeout:'1000-2000',
  })